<script setup>
defineProps({
  msg: {
    type: String,
    required: true,
  },
})
</script>

<template>
  <div class="greetings fade-in">
    <h1 class="welcome-title">{{ msg }}</h1>
    <h3 class="welcome-subtitle">
      You’ve successfully created a project with
      <a href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +
      <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
    </h3>
  </div>
</template>

<style scoped>
.greetings {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
}

.welcome-title {
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--spacing-lg);
  background: var(--vt-c-primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  transition: all var(--transition-normal);
}

.welcome-title:hover {
  transform: scale(1.05);
}

.welcome-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.welcome-subtitle a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 0 2px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.welcome-subtitle a:hover {
  color: var(--color-primary-dark);
  background-color: rgba(66, 185, 131, 0.1);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .greetings {
    text-align: center;
  }
}
</style>
